package com.example.hospitalmanagement.activity

import android.os.Bundle
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import com.example.hospitalmanagement.R
import com.example.hospitalmanagement.utils.DataDialog

/**
 * 门诊缴费记录Activity
 *
 * 位置:诊疗服务-门诊支付-门诊缴费记录
 */
class OutpatientPaymentRecordActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_outpatient_payment_record)
        initView()
    }

    /**
     * 负责页面显示,日期三级联动弹窗显示
     */
    private fun initView() {

        val timeStart: TextView = findViewById(R.id.payment_record_time_start)
        timeStart.setOnClickListener {
            DataDialog.setDateDialog(this,timeStart)
        }
        val timeEnd: TextView = findViewById(R.id.payment_record_time_end)
        timeEnd.setOnClickListener {
            DataDialog.setDateDialog(this,timeEnd)
        }
    }
}